﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QCheckBox>
#include <QRadioButton>
#include <QButtonGroup>
#include <QTextEdit>
#include <QPushButton>
#include <QGridLayout>

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void initLayout();
    void initButtons();
    void initConnect();

private slots:
    void underLine(bool);
    void italic(bool);
    void bold(bool);
    void setTextColor();

private:
    QCheckBox* cBox;
    QRadioButton*rBtn;
    QButtonGroup*bGroup;
    QTextEdit*textEdit;
    QPushButton*pBtn;
    QGridLayout*layout;
    QWidget* container;

};
#endif // MAINWINDOW_H
